//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "SniperTraining\fn_dlgInit.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

lbClear 1;
if (count GVAR(TRAINING_UNITS_TYPES) > 0) then {
	{ if (_x isKindOf "AllVehicles") then { lbAdd [1, getText(configFile/"CfgVehicles"/_x/"DisplayName")]; };
	} foreach GVAR(TRAINING_UNITS_TYPES);
	lbSetCurSel [1,0];
};
if (count GVAR(TRAINING_UNITS_TYPES) > 0) then {
	lbClear 2;
	{ lbAdd [2,_x];
	} foreach GVAR(TRAINING_DIRECTIONS);
	lbSetCurSel [2,0];
};

TRACE("End");
TMFPROFILERSTOP;
